<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* focus 焦点 */
        input:focus {
            /* 输入框自带轮廓 --- 类似于边框 */
            outline: none;
        }

        .search {
            width: 500px;
            height: 40px;
            background-color: #ff0;
        }

        .search .text {
            width: 360px;
            height: 40px;
            background-color: #f00;
            /* 一定要写内边距   输入框的字顶边不好看 */
            padding: 0 20px;

            float: left;
            border: 0;
        }

        .search .btn {
            width: 100px;
            height: 40px;
            background-color: pink;
            color: #fff;

            float: right;

            padding: 0;
            border: 0;
            /* border: 1px solid #000; */
        }

        .search .btn:hover {
            background-color: rgb(209, 82, 82);
        }


        input:focus {
            color: yellow;
        }
    </style>
</head>

<body>

    <div class="search">
        <input class="text" type="text">
        <!-- 按钮属于怪异盒模型   边框和背景颜色不会撑大盒子 -->
        <input class="btn" type="submit" value="百度一下">
    </div>

</body>

</html>